#ifndef _PT_PRINTK_H_
#define _PT_PRINTK_H_

#include "sys_cfg.h"

#ifdef PT_BK7258
#include <os/os.h>
#define o_p  os_printf
#else
#define o_p  printf
#endif

#define g_f(x) (strrchr(x,'//')?strrchr(x,'//')+1:x)

#if  0
#define log_i(...)
#else
#define log_i(...) (o_p("L%04d(%s):", __LINE__, g_f(__FILE__)),o_p(__VA_ARGS__))
#endif

#if  0
#define log_d(...)
#else
#define log_d(...) (o_p("L%04d(%s):", __LINE__, g_f(__FILE__)),o_p(__VA_ARGS__))
#endif

#if  0
#define log_e(...)
#else
#define log_e(...) (o_p("L%04d(%s):", __LINE__, g_f(__FILE__)),o_p(__VA_ARGS__))
#endif

#if  1
#define log_n(...)
#else
#define log_n(...) (o_p("L%04d(%s):", __LINE__, g_f(__FILE__)),o_p(__VA_ARGS__))
#endif

#if  0
#define debug_i(...)
#else
#define debug_i(...) (o_p("L%d(%s):", __LINE__, g_f(__FILE__)),o_p(__VA_ARGS__))
#endif

#if  0
#define debug_d(...)
#else
#define debug_d(...) (o_p("L%d(%s):", __LINE__, g_f(__FILE__)),o_p(__VA_ARGS__))
#endif

#if  0
#define debug_e(...)
#else
#define debug_e(...) (o_p("L%d(%s):", __LINE__, g_f(__FILE__)),o_p(__VA_ARGS__))
#endif

#if  1
#define debug_w(...)
#else
#define debug_w(...) (o_p("L%d(%s):", __LINE__, g_f(__FILE__)),o_p(__VA_ARGS__))
#endif

#if  0
#define debug_tip(...)
#else
#define debug_tip(...) (o_p("L%d(%s):", __LINE__,g_f(__FILE__)),o_p(__VA_ARGS__))
#endif

#if  1
#define debug_n(...)
#else
#define debug_n(...) (o_p("L%d(%s):",__LINE__,g_f(__FILE__)),o_p(__VA_ARGS__))
#endif


#endif // _PT_PRINTK_H_
